package juc.sync;

public class SyncDemo1 {

    private static int counter=0;

    public static synchronized void increment(){
        counter++;
    }
    public static synchronized void decrement(){
        counter--;
    }

}
